package com.baizhi.Controller;

import com.baizhi.annotation.AddCacheAnnotation;
import com.baizhi.service.LogeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("loge")
public class LogeController {
    @Autowired
    private LogeService logeService;
    @AddCacheAnnotation
    @RequestMapping("showAll")
    public @ResponseBody Map showAll(String logeIp,String logeContent, int page, int limit){
        Map map=logeService.showLoge(logeIp,logeContent,page,limit);
        return map;
    }
}
